#ifndef TILE_H
#define TILE_H

#include <QObject>
#include <QWidget>

class Tile : public QWidget
{
    Q_OBJECT

public:
    Tile(int type,int x,int y);
    ~Tile();
    int getX() const { return x; } // Add a getter for the x
    int getY() const { return y; } // Add a getter for the y
    int getType() const { return type; } // Add a getter for the type

signals:
    void clicked(Tile* tile); // Add a clicked signal

protected:
    void mousePressEvent(QMouseEvent* event) override; // Override the mousePressEvent method

private:
    int type;
    int x;
    int y;

};
#endif // TILE_H
